package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TbBusinessCertificateMapper;
import com.ruoyi.platform.domain.TbBusinessCertificate;
import com.ruoyi.platform.service.ITbBusinessCertificateService;

/**
 * 经营许可证信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbBusinessCertificateServiceImpl implements ITbBusinessCertificateService 
{
    @Autowired
    private TbBusinessCertificateMapper tbBusinessCertificateMapper;

    /**
     * 查询经营许可证信息
     * 
     * @param serviceInstitutionId 经营许可证信息主键
     * @return 经营许可证信息
     */
    @Override
    public TbBusinessCertificate selectTbBusinessCertificateByServiceInstitutionId(Long serviceInstitutionId)
    {
        return tbBusinessCertificateMapper.selectTbBusinessCertificateByServiceInstitutionId(serviceInstitutionId);
    }

    /**
     * 查询经营许可证信息列表
     * 
     * @param tbBusinessCertificate 经营许可证信息
     * @return 经营许可证信息
     */
    @Override
    public List<TbBusinessCertificate> selectTbBusinessCertificateList(TbBusinessCertificate tbBusinessCertificate)
    {
        return tbBusinessCertificateMapper.selectTbBusinessCertificateList(tbBusinessCertificate);
    }

    /**
     * 新增经营许可证信息
     * 
     * @param tbBusinessCertificate 经营许可证信息
     * @return 结果
     */
    @Override
    public int insertTbBusinessCertificate(TbBusinessCertificate tbBusinessCertificate)
    {
        return tbBusinessCertificateMapper.insertTbBusinessCertificate(tbBusinessCertificate);
    }

    /**
     * 修改经营许可证信息
     * 
     * @param tbBusinessCertificate 经营许可证信息
     * @return 结果
     */
    @Override
    public int updateTbBusinessCertificate(TbBusinessCertificate tbBusinessCertificate)
    {
        return tbBusinessCertificateMapper.updateTbBusinessCertificate(tbBusinessCertificate);
    }

    /**
     * 批量删除经营许可证信息
     * 
     * @param serviceInstitutionIds 需要删除的经营许可证信息主键
     * @return 结果
     */
    @Override
    public int deleteTbBusinessCertificateByServiceInstitutionIds(Long[] serviceInstitutionIds)
    {
        return tbBusinessCertificateMapper.deleteTbBusinessCertificateByServiceInstitutionIds(serviceInstitutionIds);
    }

    /**
     * 删除经营许可证信息信息
     * 
     * @param serviceInstitutionId 经营许可证信息主键
     * @return 结果
     */
    @Override
    public int deleteTbBusinessCertificateByServiceInstitutionId(Long serviceInstitutionId)
    {
        return tbBusinessCertificateMapper.deleteTbBusinessCertificateByServiceInstitutionId(serviceInstitutionId);
    }
}
